export default class victory extends Laya.Script {
    // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    owner=this.owner as Laya.Sprite
    btn_homepege=null;
    constructor() { super(); }

        onAwake(){
            Laya.stage.on("victory",this,function(){this.owner.visible=true;})
            this.btn_homepege=this.owner.getChildByName("btn_homepege")
            this.btn_homepege.on(Laya.Event.CLICK,this,this.homepege)
        }

        homepege(){
            Laya.stage.event("homepege")
            this.owner.visible=false;
        }
}